package com.zmn.plat.dubbo.impl.push;

import org.apache.dubbo.config.annotation.Service;

import com.zmn.common.dto.ResultDTO;
import com.zmn.common.dto.push.ali.AliSmsSignNameEnum;
import com.zmn.common.dto.push.ali.BaseAliSmsDTO;
import com.zmn.manager.mq.utils.MQPushUtil;
import com.zmn.plat.dubbo.interfaces.push.AliSmsRemoteService;
import com.zmn.plat.dubbo.utils.DubboConsts;

/**
 * 阿里短信
 *
 * @author duanzuocai
 * @version v1.0
 * @since 2018/12/19 11:32
 */
@Service(loadbalance = "roundrobin", timeout = 5000, retries = -1, version = DubboConsts.INTERFACE_VERSION, validation = "true")
public class AliSmsRemoteServiceImpl implements AliSmsRemoteService {

    @Override
    public ResultDTO sendAliSmsInfo(String mobile, BaseAliSmsDTO template, AliSmsSignNameEnum signName) {
        return MQPushUtil.sendAliSmsInfo(mobile, template, signName);
    }
}
